﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceProcess;

namespace Sample
{
    class MyServiceHost : CmdLineService<TheNameOfTheWCFServiceClass>
    {
        public override string ServiceName { get { return "MyServiceName"; } }
        protected override void OnStart(string[] args) { StartHosting(); }
        protected override void OnStop() { StopHosting(); }
    }
}
